<%@ page language="java" import="java.util.*, com.erclab.internal.xpresso.security.User"%>
<% 	User currentUser = (User)session.getAttribute("user"); 
	if (currentUser != null){
		Date now = new Date();
		String timestamp = now.toString();
		Cookie cookie = new Cookie ("xpressouser", currentUser.getNetId());
		cookie.setMaxAge(365 * 24 * 60 * 60);  // The cookie will be set for one year.
		cookie.setPath("/"); 
		response.addCookie(cookie);
	}
%>
